package com.huarui.purchaseOrder.model;

import java.math.BigDecimal;

import org.ewaf.framework.model.BaseDataObject;

/**
 * 采购订单明细
 * 
 * @author ycf
 * 
 */
public class PurOrSaleOrderDetail extends BaseDataObject {

	private static final long serialVersionUID = 9019531944311656220L;

	/**
	 * 主键
	 */
	private Integer id;

	/**
	 * 订单ID
	 */
	private Integer ordersId;

	/**
	 * 零件ID
	 */
	private Integer partId = 0;

	/**
	 * 卖方的零件属性ID(如果是从线下公司定，此值为空)
	 */
	private Integer inventoryIdBySeller = 0;

	/**
	 * 编码(冗余字段)
	 */
	private String code;

	/**
	 * 来源(0=原厂，1=合作厂中国，2=合作厂进口，3=非合作厂中国，4=非合作厂进口)
	 */
	private Integer source = 0;

	/**
	 * 零件名称(冗余字段)
	 */
	private String name;

	/**
	 * 英文名称(冗余字段)
	 */
	private String nameEn;

	/**
	 * 拼音码(冗余字段)
	 */
	private String pyCode;

	/**
	 * 计量单位(冗余字段)
	 */
	private String measurementUnit;

	/**
	 * 零件分类(冗余字段)
	 */
	private Integer partCategoryId = 0;

	/**
	 * 一级分类名称(冗余字段)
	 */
	private String level1Name;

	/**
	 * 二级分类名称(冗余字段)
	 */
	private String level2Name;

	/**
	 * 一级分类ID(冗余字段)
	 */
	private Integer level1Id = 0;
	/**
	 * 耐用性(消耗件,易损件,维修件,基础件,肇事件)(冗余字段)
	 */
	private String durability = "0";
	/**
	 * 品牌
	 */
	private String brand;

	/**
	 * 产地
	 */
	private String origin;
	
	/**
	 * 媒体价
	 */
	private BigDecimal retailPrice;

	/**
	 * 折扣
	 */
	private Integer discount;
	
	/**
	 * 折后价
	 */
	private BigDecimal price;

	/**
	 * 订购数量
	 */
	private Integer orderQuantity = 0;

	/**
	 * 销售数量
	 */
	private Integer quantity = 0;
	
	private Integer pickedQty;
	
	private Integer receivedQty;
	
	private String carModel;

	// private PurchaseOrder purchaseOrder;

	// public PurchaseOrder getPurchaseOrder() {
	// return purchaseOrder;
	// }
	//
	// public void setPurchaseOrder(PurchaseOrder purchaseOrder) {
	// this.purchaseOrder = purchaseOrder;
	// }

	@Override
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getOrdersId() {
		return ordersId;
	}

	public void setOrdersId(Integer ordersId) {
		this.ordersId = ordersId;
	}

	public Integer getPartId() {
		return partId;
	}

	public void setPartId(Integer partId) {
		this.partId = partId;
	}

	public Integer getInventoryIdBySeller() {
		return inventoryIdBySeller;
	}

	public void setInventoryIdBySeller(Integer inventoryIdBySeller) {
		this.inventoryIdBySeller = inventoryIdBySeller;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNameEn() {
		return nameEn;
	}

	public void setNameEn(String nameEn) {
		this.nameEn = nameEn;
	}

	public String getPyCode() {
		return pyCode;
	}

	public void setPyCode(String pyCode) {
		this.pyCode = pyCode;
	}

	public String getMeasurementUnit() {
		return measurementUnit;
	}

	public void setMeasurementUnit(String measurementUnit) {
		this.measurementUnit = measurementUnit;
	}

	public Integer getPartCategoryId() {
		return partCategoryId;
	}

	public void setPartCategoryId(Integer partCategoryId) {
		this.partCategoryId = partCategoryId;
	}

	public String getLevel1Name() {
		return level1Name;
	}

	public void setLevel1Name(String level1Name) {
		this.level1Name = level1Name;
	}

	public String getLevel2Name() {
		return level2Name;
	}

	public void setLevel2Name(String level2Name) {
		this.level2Name = level2Name;
	}

	public Integer getLevel1Id() {
		return level1Id;
	}

	public void setLevel1Id(Integer level1Id) {
		this.level1Id = level1Id;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getOrigin() {
		return origin;
	}

	public void setOrigin(String origin) {
		this.origin = origin;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Integer getOrderQuantity() {
		return orderQuantity;
	}

	public void setOrderQuantity(Integer orderQuantity) {
		this.orderQuantity = orderQuantity;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public Integer getSource() {
		return source;
	}

	public void setSource(Integer source) {
		this.source = source;
	}

	public String getDurability() {
		return durability;
	}

	public void setDurability(String durability) {
		this.durability = durability;
	}

	public String getCarModel() {
		return carModel;
	}

	public void setCarModel(String carModel) {
		this.carModel = carModel;
	}

	public Integer getPickedQty() {
		return pickedQty;
	}

	public void setPickedQty(Integer pickedQty) {
		this.pickedQty = pickedQty;
	}

	public Integer getReceivedQty() {
		return receivedQty;
	}

	public void setReceivedQty(Integer receivedQty) {
		this.receivedQty = receivedQty;
	}

	public BigDecimal getRetailPrice() {
		return retailPrice;
	}

	public void setRetailPrice(BigDecimal retailPrice) {
		this.retailPrice = retailPrice;
	}

	public Integer getDiscount() {
		return discount;
	}

	public void setDiscount(Integer discount) {
		this.discount = discount;
	}

	
}
